﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wms.Manager.Common.ExtendAttribute
{
    [AttributeUsage(AttributeTargets.Property)]
    public class ExcelColumnAttribute : Attribute
    {
        public string Name { get; set; }
        public int Order { get; set; }
        public bool Required { get; set; } = false;
        public string Format { get; set; }
        public bool Ignore { get; set; } = false;

        public double Width { get; set; } = 20 * 256;

        public ExcelColumnAttribute(string name, int order = 0)
        {
            Name = name;
            Order = order;
        }
    }
}
